package com.common.retrofit.methods;

import com.common.retrofit.base.BaseMethods;
import com.common.retrofit.service.HaiNingService;

import rx.Observable;
import rx.Subscriber;

public class SentGiftDongTaiMethods extends BaseMethods {

    private static SentGiftDongTaiMethods m_ins = null;

    public static SentGiftDongTaiMethods getInstance() {
        if (m_ins == null) {
            synchronized (SentGiftDongTaiMethods.class) {
                if (m_ins == null) {
                    m_ins = new SentGiftDongTaiMethods();
                }
            }
        }
        return m_ins;
    }

    @Override
    protected String getHttpUrl() {
        return "Order/";
    }

    private HaiNingService initService() {
        return getRetrofit().create(HaiNingService.class);
    }


    public void go_dorder(Subscriber<Object> subscriber,
                      int uid ,
                      String hashid     ,String goodid ,String did  ,String fid ) {
        Observable observable = initService().go_dorder(System.currentTimeMillis()+"",
                "1d3486719ea106252fc493e0038840c8",uid,hashid ,goodid,did,fid
        );
        toSubscribe(observable, subscriber);
    }
}
